<?php 
	echo $menuexiste = displaMen(true);
?>

<?php
	// Affiche le tableau de bord
	function displayMain($msgRetour){	
?>		
		<table width="100%">
			<tr>
				<td width="50%">
					<div id="badge">
						<div>
							<table>
								<tr>
									<td style="padding-right: 20px;">
										<a href="">
											<a href="javascript:showDiv();" class="poplight">
												<img src="view/images/profile_default.png" title="Ajouter une photo" alt="Mon profil" />
											 </a>
										</a>
									</td>
									<td style="vertical-align: top">
										<div style="font-weight: bold; color: #357DA5"><?php echo $_SESSION['usernom']; ?></div>
										<p />
										<div><?php echo $_SESSION['useradr']; ?></div>
										<div><?php echo $_SESSION['usercp']; ?></div>
										<p />
										<div><?php echo $_SESSION['usermail']; ?></div>
										<div><?php echo $_SESSION['usertel']; ?></div>
										<br />
										<div>
											<a href="?content=account&modif=true&u=<?php echo urlencode($_SESSION['usermail']); ?>&token=<?php echo $_SESSION['tokena'] ?>">
												<img src="view/images/edit.png" title="Modifier mes informations" alt="Editer"/></a>
											</a>
											&nbsp;&nbsp;
											<a href=""><img src="view/images/delete.png" title="Se d&eacute;sinscrire" alt="Supprimer"/></a>
										</div>
									</td>
								</tr>
							</table>
						</div>
					</div>
				</td>	
				<td style="vertical-align: top; width:50%; font-size: 10pt;">
					<div>
						<h1>Actualit&eacute;s</h1><hr />
						<table>
							<tr>
								<td><img src="view/images/puce.png">Ils viennent de d&eacute;poser une annonce :</td>
								<td>&nbsp;</td>
							</tr>
							<tr>
								<td colspan="2"></td>
							</tr>
							<tr>
								<td colspan="2"></td>
							</tr>
							<tr>
								<td colspan="2"></td>
							</tr>
							<tr>
								<td><img src="view/images/puce.png">Nouvelles destinations qui pourraient vous int&eacute;resser :</td>
								<td>&nbsp;</td>
							</tr>
						</table>
					</div>
				</td>
			</tr>
		</table>
		<form method="post" action="?content=account&image=true&add=1" enctype="multipart/form-data">
		<div id="hideshow" style="visibility: hidden;">
	    	<div id="fade"></div> 
		    <div class="popup_block"> 
		        <div class="popup"> 
		            <a href="javascript:hideDiv()">
		                <img src="view/images/close.png" class="cntrl" alt="" />
		            </a>
		            <h3>Ajouter une image</h3> 
		            <p> 
		               <input name="USER_IMAGE" type="file" />
		               <input type="hidden" name="MAX_FILE_SIZE" value="1024" />
		               <input type="submit" name="submit" value="Envoyer" />
		            </p>
		        </div>
		    </div>
		</div>
		</form>
<?php
	}
	displayMain($msgRetour);
	
?>